package com.d3works.apps.account.service.invoice.factory;

import com.d3works.apps.account.db.Invoice;
import com.d3works.apps.account.service.invoice.workflow.cancel.CancelState;
import com.d3works.inject.Beans;

public class CancelFactory {

  public CancelState getCanceller(Invoice invoice) {

    CancelState cancelState = Beans.get(CancelState.class);
    cancelState.init(invoice);
    return cancelState;
  }
}
